package org.example.myframework.frame.demo.convert;

import org.example.myframework.frame.demo.domain.entity.TestTablePlus;
import org.example.myframework.frame.demo.domain.pojo.ro.TestTablePlusRo;
import org.example.myframework.frame.demo.domain.pojo.vo.TestTablePlusVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface TestTablePlusConvert {

    TestTablePlusConvert INSTANCE = Mappers.getMapper(TestTablePlusConvert.class);

    // 用于更改源端和目标端的字段名映射
    // @Mapping(source = "age", target = "age1")
    TestTablePlusVo convertEntityToVo(TestTablePlus entity);
    TestTablePlus convertRoToEntity(TestTablePlusRo ro);

}
